public class TestDemo {
    public static void main(String[] args) {
        int sum=0;
        int sub=0;
        for (int i = 1; i <=100; i++) {
            if(i%2==0) {
                sum += i;
            } else {
                sub+=i;
            }
        }
        System.out.println(sum);
        System.out.println(sub);
    }
    public static void main2(String[] args) {
        for(int i=0;i<=100;i++) {
            if(i%3==0&&i%5==0) {
                System.out.println(i);
            }else {
                continue;
            }
        }
    }
    public static void main1(String[] args) {
//        System.out.println("HelloWorld");
//        System.out.println(10<20&10);int a=3;
//        int a=10;
//        System.out.println(a>>1);
//        System.out.println(a/2);
        for(int i=0;i<=100;i++)
        {
            if(i%3==0&&i%5==0) {
                System.out.println(i);
                continue;
            }
        }
    }
}
